<template>
	<view>
		<view class="yaoyanSrc"></view>
		<view class="box">
			<view class="title">{{data.title}}</view>
			<view class="img">
				<image style="width: 100%;height:100%" :src="data.imgsrc" mode=""></image>
			</view>
			<view class="msg">
				<view class="author">来源：{{data.author}}</view>
				<view class="date">{{data.date}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad(object) {
			this.data = JSON.parse(object.item)
		},
		data() {
			return {
				data: {}
			}
		},
		mounted() {

		}
	}
</script>

<style lang="scss" scoped>
	.yaoyanSrc {
		position: absolute;
		top: -40upx;
		right: 0;
		width: 140upx;
		height: 140upx;
		background: url(../../static/images/yaoyan.jpg) no-repeat center;
		background-size: cover;
	}

	.box {
		width: 90%;
		height: 700upx;
		border: 1px solid #ccc;
		border-radius: 6px;
		margin: 0 auto;
		margin-top: 40upx;
		padding: 16upx;
		box-sizing: border-box;
		.title {
			width: 82%;
			padding: 0 20px;
			box-sizing: border-box;
		}
		.img {
			width: 50%;
			height: 50%;
			margin: 20upx auto;
		}
		.msg {
			color:#aaa;
			font-size: 24upx;
			margin-top: 70upx;
			.date {
				text-align: right;
				margin-top: 20upx;
			}
		}
	}
</style>
